from rest_framework import viewsets

from .models import WebSiteLink, Target
from .serializers import WebSiteLinkSerializer, TargetSerializer

class WebSiteLinkViewSet(viewsets.ReadOnlyModelViewSet):
    queryset = WebSiteLink.objects
    serializer_class = WebSiteLinkSerializer

class TargetViewSet(viewsets.ReadOnlyModelViewSet):
    queryset = Target.objects
    serializer_class = TargetSerializer
